<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			let website = "https://www.baidu.com/s?ie=utf-8&f=8&rsv_bp=1&tn=15007414_5_dg&wd=%E5%8E%9F%E7%A5%9E&oq=%25E7%25BB%259D%25E5%258C%25BA%25E9%259B%25B6&rsv_pq=868058f90166de7e&rsv_t=ba9ayegh%2FCbkGjErifnGJabX2KQSfN%2BnUFfk1wcNysB%2Fucci5FZNG%2FGGMkMFQO4yrz12Iw&rqlang=cn&rsv_enter=1&rsv_dl=tb&rsv_btype=t&inputT=2103&rsv_sug3=37&rsv_sug1=42&rsv_sug7=101&rsv_sug2=0&rsv_sug4=2757"
			let index = website.indexOf("?")
			let temp = website.substring(index+1)
			console.log(temp);
			let array = []
			array = temp.split("&")
			console.log(array)
			let obj = {}
			for (var i = 0; i < array.length; i++) {
				let name = array[i].split("=")[0]
				let value = array[i].split("=")[1]
				obj[name] = decodeURI(value)
			}
			console.log(obj);
		</script>
	</body>
</html>
